#pragma once
//https://blog.csdn.net/yaolcc/article/details/119395493?ops_request_misc=&request_id=&biz_id=102&utm_term=QCustomPlot&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-1-119395493.142^v102^pc_search_result_base7&spm=1018.2226.3001.4187
/// <summary>
/// ���ߺͱ���ļ������
/// </summary>
#include <QHBoxLayout>
#include <QCheckBox>
#include <qtoolbar.h>
#include <QComboBox>


#include "plotgraphview.h"
#include "plottableview.h"

class DLL_EXPORT PlotView  : public QWidget
{
	Q_OBJECT
public:
	PlotView(QWidget *parent);
	~PlotView();
public:
	void setPlotStatus(const int64_t uuid, bool status);
	void add_plotData(QSharedPointer<QCPGraphDataContainer>& data, QString plot_name = "name");
	void set_plotStatus(const int64_t uuid, bool status);
private:
	void initUI();
	void initConnect();
private slots:
	void updateClass();
	void setStatus();
public:
	QScopedPointer<PlotGraphView> _graphView;
	QScopedPointer<PlotTableView> _tableView;
private:
	QPointer<QToolBar> _toolBar;
	QPointer<QComboBox> _showModle;
	QSharedPointer<PlotModel> _model;
};
